import App from './App'

// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'

import topHead from 'components/topHead.vue'
import tabBar from "components/tabBar.vue"
import http from 'utils/http.js'
import common from 'utils/common.js'
import active from 'utils/active.js'
import returns from 'utils/returns.js'
import 'static/css/font.css'

Vue.component('topHead',topHead)
Vue.component('tabBar',tabBar)
// 全局js
Vue.prototype.http = http
Vue.prototype.$com = common
Vue.prototype.$act = active
Vue.prototype.$ret = returns

Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
  ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif